package com.atguigu.common.exception;

import lombok.Data;

@Data
public class NoStockException extends RuntimeException {
    private Long skuId;

    public NoStockException() {
        super("库存不足");
    }

    public NoStockException(Long skuId) {
        super("商品ID：" + skuId + "没有足够的库存了");
        this.skuId = skuId;
    }
}
